Skip to content

Fix merged reports sorting - #1003

Open
taobojlen wants to merge 1 commit into
fix/user-approval-status-sortingfrom
fix/merged-reports-sorting
Open

Fix merged reports sorting#1003
taobojlen wants to merge 1 commit into
fix/user-approval-status-sortingfrom
fix/merged-reports-sorting

Conversation

@taobojlen

@taobojlen taobojlen commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Context & Requests for Reviewers

The merged reports table was using the wrong sort functions, so sorting the table was broken. Now fixed.

Tests

See regression test.

Also tested manually.

CleanShot 2026-08-18 at 12 21 26@2x

(Optional) Rollout Plan

N/A

Checklist

Only check items that apply to this PR; leave the rest unchecked.

  • If you changed anything user-facing (i.e. user interface or APIs):
    Did you update the CHANGELOG.md and related docs?

  • If you changed server/models/**/{ContentTypeModel,ActionModel,RuleModel,PolicyModel}.ts:
    Did you update the corresponding history tables and their triggers?

  • If you changed db/src/scripts/** and used CREATE TABLE, ADD COLUMN, or ALTER COLUMN:
    Are as many columns marked NOT NULL as possible? If some columns can sometimes be null depending on other columns, are there CHECK constraints capturing those relationships, and are these also reflected using unions in the associated Kysely types?

  • If you added a new signal in server/services/signalsService/signals/**:
    Did you classify every error case as a permanent error (SignalPermanentError, no retry) or a normal error (retryable)? Any case where the signal can't determine a score should be a SignalPermanentError.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cfe324e8-0bac-45b7-a820-dc51e1cf8747

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@taobojlen
taobojlen force-pushed the fix/merged-reports-sorting branch from d4673b4 to 7388923 Compare August 12, 2026 03:05
@taobojlen
taobojlen force-pushed the fix/merged-reports-sorting branch 2 times, most recently from bbf8dcf to 9e389b0 Compare August 17, 2026 10:22
@taobojlen
taobojlen changed the base branch from fix/recent-decision-summary-keys to fix/user-approval-status-sorting August 17, 2026 10:23
@taobojlen
taobojlen force-pushed the fix/merged-reports-sorting branch from 9e389b0 to ec7c8be Compare August 17, 2026 15:43
@taobojlen
taobojlen force-pushed the fix/merged-reports-sorting branch 2 times, most recently from 5f710f7 to 5427a1c Compare August 18, 2026 09:25
@taobojlen
taobojlen force-pushed the fix/merged-reports-sorting branch 2 times, most recently from a28e70b to c815ac6 Compare August 18, 2026 10:13
@taobojlen
taobojlen force-pushed the fix/merged-reports-sorting branch from c815ac6 to 6ebae29 Compare August 18, 2026 10:19
@taobojlen
taobojlen marked this pull request as ready for review August 18, 2026 11:21
@cassidyjames
cassidyjames requested a review from a team as a code owner August 21, 2026 15:26
@cassidyjames
cassidyjames force-pushed the fix/merged-reports-sorting branch from 6ebae29 to 8b87c68 Compare August 21, 2026 15:26
@cassidyjames
cassidyjames force-pushed the fix/merged-reports-sorting branch from 8b87c68 to a99177b Compare August 21, 2026 15:33
@cassidyjames
cassidyjames force-pushed the fix/merged-reports-sorting branch from a99177b to 7ad6131 Compare August 21, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant